package topday1_9.mxdx9;

/**
 * @Auther:小陈的Java
 * 饿汉式单例设计模式
 */
public class Singleton {
    private Singleton(){}

    private static Singleton single = new Singleton();

    public static Singleton getInstance(){
        return single;
    }
}
